package com.youlin.untils;

public enum MyEnum {

    AM_CREATE ("告别会-新建", 0),
    AM_OPERATE ("告别会-已预约", 1),
    AM_PRE_REVIEW ("告别会-待审核", 2),
    AM_REVIEWING ("告别会-审核中", 3),
    AM_POST_REVIEW ("告别会-已审核", 4),

    ROLE_OPERATOR_ID ("角色-操作者-ID", 1),
    ROLE_REVIEWER_ID ("角色-审核者-ID", 2),
    ROLE_MANAGER_ID ("角色-超级管理员-ID", 3),

    BG_TYPE_INDEX ("背景类型-封面", 0),
    BG_TYPE_HEAD ("背景类型-遗像主背景", 1),
    BG_TYPE_HEAD_BR ("背景类型-遗像边框", 2),
    BG_TYPE_LIFE ("背景类型-生平主背景", 3),
    BG_TYPE_PHOTO_BR ("背景类型-相册边框", 4),
    BG_TYPE_PHOTO ("背景类型-相册边框", 5),
    BG_TYPE_SI ("背景类型-祝福主背景", 6),
    BG_TYPE_SIFH ("背景类型-祝福献花-高亮", 7),
    BG_TYPE_SIFL ("背景类型-祝福献花-灰暗", 8),
    BG_TYPE_SIFB ("背景类型-提示-边框", 9),
    BG_TYPE_SIF ("背景类型-提示-花朵", 10),
    BG_TYPE_FAMILY ("背景类型-家庭照主背景", 11),
    BG_TYPE_SINAME ("背景类型-来宾名单主背景", 21),
    BG_TYPE_SICONTENT ("背景类型-来宾留言主背景", 22),
    BG_TYPE_CBG ("背景类型-风俗信息主背景", 23),
    BG_TYPE_CBR ("背景类型-风俗信息边框", 24),
    BG_TYPE_FTX ("背景类型-祝福献花提示文本", 25),
    BG_TYPE_PTX ("背景类型-家庭照总结文本", 26),
    BG_TEMPLATE ("背景类型-大海报大背景", 27),
    BG_COLOR ("背景类型-背景主题颜色", 28),

    TX_TYPE_HEAD ("文案类型-首页/遗像", 0),
    TX_TYPE_LIFE ("文案类型-生平", 1),
    TX_TYPE_SIGNIN ("文案类型-签到墙", 2),

    SI_REVIEW_NAME ("签到审核-修改来宾姓名", 0),
    SI_REVIEW_CONTENT ("签到审核-删除来宾留言", 1),

    CUSTOM_DATA_PIC ("风俗信息资料类型-轮播图图片", 0),
    CUSTOM_DATA_COVER ("风俗信息资料类型-视频封面", 1),
    CUSTOM_DATA_VIDEO ("风俗信息资料类型-视频", 2),

    ISNEEDLOGIN_0 ("扫码-不需要登录", 0),
    ISNEEDLOGIN_1 ("扫码-需要登录", 1),
    ISNEEDLOGIN_2 ("扫码-参数错误", 2),

    // 逝者信息缓存KEY前缀
    AMUUID_DM ("amUuId_dm:", 1),
    // 是否需要承办人登录状态缓存KEY前缀
    AMUUID_ISNL ("amUuId_isNL:", 2),
    // 告别会状态缓存KEY前缀
    AMUUID_STATUS ("amUuId_status:", 3),

    DMLOCK ("RLock:dmLock", 1),
    ISNLLOCK ("RLock:isnlLock", 2),
    SIGNINLOCK ("RLock:signinLock", 3),

    // Redisson BloomFilter Key
    AMBF ("amBF", 0),

    ACCESS_TOKEN_KEY("access_token", 0),
    WX_ACTIVE("WXACTIVE", 1),
    WX_APPLETS("WXAPPLETS", 2),

    ;

    private String message;
    private int value;

    MyEnum(String message, int value) {
        this.message = message;
        this.value = value;
    }

    public String getMessage() {
        return message;
    }

    public MyEnum setMessage(String message) {
        this.message = message;
        return this;
    }

    public int getValue() {
        return value;
    }

    public MyEnum setValue(int value) {
        this.value = value;
        return this;
    }

    @Override
    public String toString() {
        return this.message;
    }

}
